#include "Math.h"

#include <cmath>

/*
	Math
*/

/*	public	*/

double Math::tanh(const double& real) {
	return ::tanh(real);
}

double Math::abs(const double& real) {
	return ::fabs(real);
}

double Math::ceil(const double& real) {
	return ::ceil(real);
}

double Math::exp(const double& real) {
	return ::exp(real);
}

double Math::min(const double& real1, const double& real2) {
	return (real1 < real2) ? real1 : real2;
}

double Math::max(const double& real1, const double& real2) {
	return (real1 > real2) ? real1 : real2;
}

double Math::sqrt(const double& real) {
	return ::sqrt(real);
}

double Math::power(const double& base, const double& exponent) {
	return ::pow(base, exponent);
}

double Math::NaN() {
	return NAN;
}

void Math::setToNaN(double& real) {
	real = NaN();
}

void Math::setToPI(double& real) {
	real = M_PI;
}

bool Math::isNaN(const double& real) {
	return isnan(real);
}

